package com.ziyun.job.modules.job.task.seller;

import com.ziyun.erp.modules.supp.service.SellerInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 商户商品初始化
 * @author gaosheng
 * @date 2019-01-07 14:35
 */
@Slf4j
@Component("synSellerCopyGoodsTask")
public class SynSellerCopyGoodsTask {

    @Autowired
    private SellerInfoService sellerInfoService;

    public void synSellerCopyGoods(){
        log.info("===============seller copy goods task start===============");
        sellerInfoService.sellerCopyGoodsBatchAll(0);
        log.info("===============seller copy goods task end===============");
    }
}
